﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Site.Master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="FortuneHeaven.Web.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="stylesheet" href="Content/CSS/login.css" />
     <script language="javascript" type="text/javascript">

         $(document).ready(function () {
             $(".subggg").keydown(function (event) {
                 if (event.which == 13) {
                     event.cancelBubble = true;
                     event.returnValue = false;
                     __doPostBack('ctl00$ContentPlaceHolder1$btnLogin', '');
                     //$("#<%=btnLogin.ClientID%>").click();
                    // return false;
                 }
             });
         });

         
    </script>
    <style>
        .imgsize
        {
            margin-left: 10px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
        <div class="top">
            用户登录</div>
        <div class="body">
            <p>
                欢迎登录!</p>
            <h1>
                <span style="text-align: right;">用户名：</span><asp:TextBox ID="txtUser" CssClass="subggg" runat="server"></asp:TextBox></h1>
            <h1>
                密&nbsp;&nbsp;&nbsp;&nbsp;码：<asp:TextBox ID="txtPwd" CssClass="subggg" runat="server" TextMode="Password"></asp:TextBox></h1>
            <h1>
                <span style="text-align: right;">验证码：</span><asp:TextBox CssClass="subggg" ID="txtValidate" runat="server"></asp:TextBox><img style="border-width:0px;cursor: pointer;" class="imgsize" src="<%=ResolveUrl("~/ValidationCode.ashx")%>" onclick="this.src='<%=ResolveUrl("~/ValidationCode.ashx")%>?n='+ Math.random();" class="validecode" title="点击刷新验证码。" id="ctl00_ContentPlaceHolder1_PassCode"> </h1>
            <h2>
                <asp:LinkButton ID="btnLogin" runat="server" OnClientClick="" OnClick="LoginAcount">
                    <img  src="Content/Image/Main/lgbg-04.jpg"></asp:LinkButton></h2>
        </div>
    </div>
</asp:Content>
